/* Find bar  */

@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

findbar {
    position: relative;
}

.findbar-container {
	padding: 6px !important;
	display: flex;
	justify-content: center;
	position: relative;
	flex-direction: row;
	width: calc(100% - 42px);
}

hbox[anonid="findbar-textbox-wrapper"] {
	display: flex !important;
	flex: 1;
}

.findbar-textbox {
	margin-left: 60px !important;
}

.findbar-find-status:not(:-moz-only-whitespace), .found-matches[hidden] ~ .findbar-find-status, .found-matches {
	flex: 1;
	order: -1;
	padding: 7px 0;
}
.found-matches:not([hidden]) ~ .findbar-find-status {
	display: none;
}

.findbar-closebutton {
	margin: 6px 6px 6px 0 !important;
}

@media (max-width: 980px) {
	.findbar-textbox {
		margin-left: 0 !important;
	}
	.findbar-find-status, .found-matches {
		order: 0;
	}
}